using System;
using Gtk;
using MiCanvas;

public class MainWindow: Gtk.Window
{
	protected Gtk.Button btn_circulo;
	protected Gtk.Image image2;
	protected Gtk.Button button13;
	protected Gtk.Button button11;
	protected Gtk.Button button12;
	protected Gtk.Button button17;
	protected Gtk.Notebook ntb_canvas;

	MyCanvas canvas1 = new MyCanvas();
    
   
   
	
	public MainWindow (): base ("")
	{
		Stetic.Gui.Build (this, typeof(MainWindow));
		ntb_canvas.Add(canvas1);
		canvas1.Show();
		btn_circulo.Clicked += new EventHandler(click_circulo);
		
	}
	void click_circulo (object o, EventArgs args)
	{
  		Figura f = (Figura) new Circulo(3,4,40);
        canvas1.addFigure(f);
        
	}

	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}
}